﻿<%@ Page Language="C#" MasterPageFile="~/master/AdminLayout.master" AutoEventWireup="true" CodeFile="userdetail.aspx.cs" Inherits="admin_userdetail" Title="Untitled Page" %>

<%@ Register Assembly="Library" Namespace="Pheonix.CodeLibrary.Web" TagPrefix="ucc" %>
<%@ Register Assembly="App_Code" Namespace="Pheonix.Fashionzoomer.UI" TagPrefix="ucc" %>
<asp:Content ID="workArea" ContentPlaceHolderID="WorkArea" Runat="Server">
    <table style="margin-left:auto; margin-right:auto;">
        <tr>
            <td>
                <ucc:ResponseMessage ID="uccResponseMessage" runat="server" ></ucc:ResponseMessage>
            </td>
        </tr>
        <tr>
            <td>
                <br />
                <asp:ValidationSummary ID="vlsUserDetail" runat="server" DisplayMode="BulletList" 
                    HeaderText="Please correct the following errors" CssClass="adminValidator"/>
                <br />
            </td>
        </tr>
        <tr>
            <td>
                <h5><asp:Label ID="lblTitle" runat="server"></asp:Label></h5>
            </td>
        </tr>
        <tr>
            <td align="left" valign="middle">
               <table cellspacing="10">
                    <tr>
                        <td class="adminTitleText">User Name</td>
                        <td>
                            <asp:TextBox ID="tbxUserName" runat="server" CssClass="adminTextBox" ></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rqvUserName" runat="server" Display="Dynamic"
                                ErrorMessage="User name is required" Text="*" ControlToValidate="tbxUserName"
                                 SetFocusOnError="true">
                            </asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="adminTitleText">User Password</td>
                        <td>
                            <asp:TextBox ID="tbxUserPassword" runat="server" CssClass="adminTextBox" 
                                TextMode="Password" ></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rqvUserPassword" runat="server" Display="Dynamic"
                                ErrorMessage="User password is required" Text="*" ControlToValidate="tbxUserPassword"
                                 SetFocusOnError="true">
                            </asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="adminTitleText">Retype Password</td>
                        <td>
                            <asp:TextBox ID="tbxRetypePassword" runat="server" CssClass="adminTextBox" 
                                TextMode="Password" ></asp:TextBox>
                            <asp:CompareValidator ID="cmvRetypePassword" runat="server" Display="Dynamic"
                                ErrorMessage="Passwords do not match" Text="*" ControlToCompare="tbxUserPassword"
                                ControlToValidate="tbxRetypePassword" SetFocusOnError="true">
                            </asp:CompareValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="adminTitleText">User Email</td>
                        <td>
                            <asp:TextBox ID="tbxUserEmail" runat="server" CssClass="adminTextBox" ></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rqvUserEmail" runat="server" Display="Dynamic"
                                ErrorMessage="User email is required" Text="*" ControlToValidate="tbxUserEmail"
                                 SetFocusOnError="true">
                            </asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="adminTitleText">Active</td>
                        <td>
                            <asp:CheckBox ID="cbxIsActive" runat="server" Checked="true" />
                        </td>
                    </tr>
                    <tr>
                        <td class="adminTitleText">Verified</td>
                        <td>
                            <asp:CheckBox ID="cbxIsVerified" runat="server" Checked="false" />
                        </td>
                    </tr>
                    <tr>
                        <td class="adminTitleText">Membership</td>
                        <td>
                            <asp:DropDownList ID="ddlMembership" runat="server" AppendDataBoundItems="true">
                                <asp:ListItem Value="-1" Text="Select"></asp:ListItem>
                            </asp:DropDownList>
                            <asp:RequiredFieldValidator ID="rqvMembership" runat="server" Display="Dynamic"
                                ErrorMessage="Membership is required" Text="*" ControlToValidate="ddlMembership"
                                 SetFocusOnError="true" InitialValue="-1">
                            </asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td>
                            <asp:ImageButton ID="btnBack" runat="server" Text="Back" OnClick="Back_Click" CausesValidation="false" SkinID="FormBackButton" />
                            &nbsp;&nbsp;
                            <asp:ImageButton ID="btnSave" runat="server" Text="Save" OnClick="Save_Click" SkinID="FormSaveButton" />
                        </td>
                    </tr>
               </table>
            </td>
        </tr>
    </table>  
</asp:Content>